Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

CI type check was failing because TypeScript couldn't resolve @/.source/server - an auto-generated module from fumadocs-mdx that wasn't being created before running tsc.

Changes

  • Added npx fumadocs-mdx step in CI workflow before type checking to generate the .source directory and its TypeScript declarations
- name: Install dependencies
  run: npm ci

- name: Generate source files
  run: npx fumadocs-mdx

- name: Type check
  run: npx tsc --noEmit

The Next.js build already generates these files, but the standalone type check step needs them explicitly created first.

Original prompt

引用: https://github.com/objectstack-ai/docs/actions/runs/21030252803/job/60464700869#step:5:1


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 15, 2026 0:45am

Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot AI changed the title [WIP] Update documentation for actions in the repo Fix CI type check by generating fumadocs source files Jan 15, 2026
Copilot AI requested a review from huangyiirene January 15, 2026 12:49
@github-actions
Copy link

🚀 Preview Deployment

This pull request will be automatically deployed to Vercel.

Preview Links

  • 📝 Documentation: Will be available once Vercel deployment completes
  • 🌍 Languages: English (/en/docs) and Chinese (/zh-CN/docs)

Build Status

Check the CI workflow for build status and any errors.


Automated preview information for PR #8

@hotlong hotlong marked this pull request as ready for review January 16, 2026 05:27
Copilot AI review requested due to automatic review settings January 16, 2026 05:27
@hotlong hotlong merged commit 9c33ed2 into copilot/create-required-automation-workflows Jan 16, 2026
6 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI type check failure by adding a step to generate fumadocs source files before running TypeScript type checking. The issue occurred because TypeScript couldn't resolve the auto-generated @/.source/server module, which is created by fumadocs-mdx from MDX content files.

Changes:

  • Added npx fumadocs-mdx step in the CI workflow to generate .source directory and TypeScript declarations before type checking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants